<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<%
	// if user was logged in, logout:
	try {
		session.invalidate();
	} catch (Throwable t) {
		//do nothing
	}
%>
	<head>
		<title>CoursesPlus</title>
		<script type="text/javascript" src="public/jquery.min.js"></script>
		<script type="text/javascript" src="public/index.js"></script>
		<link rel="stylesheet" type="text/css" href="style/style.css" />
		<link rel="stylesheet" type="text/css" href="style/basic.css" />
	</head>
	<body>
		<div id="wrap">
			<div id="header">
				<div class="logo">
					<a href="#" id="logoLink"><img src="images/name.png" alt="CoursesPlus" /></a>
				</div><!--end logo-->
				<div class="subtitle">
					<h2>Welcome! You are currently logged out.</h2>
				</div><!--end subtitle-->
				<div id="nav">
					<ul id="nav-pages">
						<li><a href="#" id="homeLink" class="current">Home</a><span>~</span></li>
						<li><a href="#" id="registerLink">Register</a><span>~</span></li>
						<li><a href="#" id="aboutUsLink">About Us</a></li>
					</ul><!--end nav-pages-->
				</div><!--end nav-->
			</div><!--end header-->
			
			<div id="main">
				<div id="main-error">
					<%
					String errorCode = request.getParameter("errorCode");
					if (null == errorCode) { //no error code was supplied => login error %>
					<h2 class="errorText">Login error. try again.</h2>
					<%} else { //known error code - print it %>
					<h2 class="errorText">Error <%=errorCode %>  :(</h2>
					<%} %>
				</div>
			</div><!--end main-->
			
		</div><!--end wrap-->
		<script type="text/javascript">setLoggedOutHeaderLinks();</script>
	</body>
</html>
